﻿@{
    ResFile = "cms_Common";
}
<div style="display:none;" class="b-error-notice" data-bind="visible: viewEventModel.events().length > 0">
	<i class="b-icon b-icon_warning"></i>
	<a class="b-icon b-icon_close" title="Delete" href="#" data-bind="click: function() { viewEventModel.removeAllEvents() }">@_("Delete")</a>
    <ul class="ul-reset b-error-notice_list" data-bind='template: { name: "eventRowTemplate", foreach: viewEventModel.events }'></ul>
</div>

<script type="text/html" id="eventRowTemplate">
    <li class="b-error-notice_item">
    	<h5 class="b-error-notice_title" data-bind="text: eventTitle"></h5>        
        <span data-bind="html: eventBody"></span>        
    </li>        
</script>